package com.itheima.factory;

import com.itheima.commons.Code;
import com.itheima.commons.Result;

/**对Result的封装
 * @Description:
 * @Version: V1.0
 */
public class ResultFactory {
    private ResultFactory() {
    }

    public static Result OK(){
        return new Result(Code.OK,"执行成功");
    }

    public static Result Error(String msg){
        return new Result(Code.ERROR,msg);
    }

}
